package gaery.utils;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

import winstone.Launcher;

public class Server {
	
	public static void main(String[] cli) throws Exception {
		System.out.println("Starting scanner...");
		SourceCodeWatcher.main(null);
		
		System.out.println("Starting Launcher..." + cli[0]);
		//Launcher.main(args);
		Map args = new HashMap();
		//args.put("--useServletReloading", null);
		args.put("webroot", cli[0]); // or any other command line args, eg port
		Launcher.initLogger(args);
		Launcher winstone = new Launcher(args); 
	}
}
